#define _CRT_SECURE_NO_WARNINGS	

#include<stdio.h>

int main()
{
    for (int i = 1; i <= 5; i++)
    {
        for (int space = 5 - i; space > 0; space--)
            printf(" ");
        for (int j = 1; j <= 2 * i - 1; j++)
            printf("%d", j);
        printf("\n");
    }
    return 0;
}